package org.demo.warehouse.common.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author zgc
 * @since 2021-12-17
 */
@Getter
@Setter
@Accessors(chain = true)
public class Record implements Serializable {

    /**
     * 出仓
     */
    public final static Integer RECORD_TYPE_OUT = 1;
    /**
     * 入仓
     */
    public final static Integer RECORD_TYPE_IN = 2;


    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 货物号
     */
    private Long goodsId;

    /**
     * 用户号
     */
    private Long userId;

    /**
     * 出库/入库
     */
    private Integer type;

    /**
     * 操作数量
     */
    private Integer sum;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 逻辑删除 1已删除
     */
    private Integer deleted;


}
